<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center myConvenience_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub myConvenience_fd0_0'>
					<view class='flex flex-wrap align-center myConvenience_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  myConvenience_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='myConvenience_fd0_0_c1_c0'>我的便民街</text>
					</view>
					<view class='flex flex-wrap align-center justify-end myConvenience_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
				<view>
					<benben-flex-tabs class-name='myConvenience_benbenTabsfd1_0' v-model="tabs" ref="benben_tabsfd1_0"
						select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false'
						:open-sticky='true' :top='0' :is-show-content='false' :scrollspy='false'
						:tabs-info.sync="tabsInfofd1_0" @change="changetab">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex flex align-center justify-around">
									<view v-for="(item,index) in arrList" :key="index"
										:class="{ 'checkTitlefd1_0': tabs == item.aid, 'flex flex-wrap align-center myConvenience_titlefd1_0_c3': true }"
										@tap.stop="tabs = item.aid" :id="`benben_tabsfd1_0-title-item-${item.aid}`">
										<text>{{item.mingcheng}}</text>
									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line myConvenience_linefd1_0"></view>
							</view>
						</scroll-view>
					</benben-flex-tabs>

				</view>
				<!---flex布局flex布局开始-->
				<view class="flex benben-flex-layout flex-wrap align-center bianmingjie_flex_0">
					<view class='flex flex-wrap align-center bianmingjie_fd0_0' v-for="(item,index) in arrValueList" :key="index" @tap.stop="clickDynamicDetails(item.aid)">
						<view class='flex flex-wrap align-center bianmingjie_fd0_0_c0'>
							<!-- <text class='bianmingjie_fd0_0_c0_c0'>招聘小区保安 5-6K</text> -->
						</view>
						<view class='flex flex-direction flex-wrap align-stretch bianmingjie_fd0_0_c1'>
							<text class='bianmingjie_fd0_0_c1_c0'>{{item.xiangqingmiaoshu}}</text>
							<!-- <view class='flex flex-wrap align-center'>
								<text class='bianmingjie_fd0_0_c1_c1_c0'>1、日常的安全巡查，发现存在的安全隐患；
									2、园区业主关系维护，协助项目达成运营品质输出…</text>
							</view> -->
						</view>
						<view class='flex flex-wrap align-center bianmingjie_fd0_0_c2'>
							<image v-for="(itm,idx) in item.tupian" class='bianmingjie_fd0_0_c2_c0' mode="aspectFill" :src='itm'></image>
						</view>
						<view class='flex flex-wrap align-center justify-between bianmingjie_fd0_0_c3'>
							<view class='flex flex-wrap align-center'>
								<image class='bianmingjie_fd0_0_c3_c0_c0' mode="aspectFit" :src='userInfo.avatar'>
								</image>
								<text class='bianmingjie_fd0_0_c3_c0_c1'>{{item.user_nickname}}</text>
							</view>
							<view class='flex flex-wrap align-center'>
								<text class='bianmingjie_fd0_0_c3_c0_c1'>2022-09-12发布</text>
							</view>
						</view>
					</view>
					<view class="flex justify-center" v-if="arrValueList.length==0" style="width: 100%;">
						<fu-empty-ui></fu-empty-ui>
					</view>
					<!-- <view class='flex flex-wrap align-center bianmingjie_fd0_2'>
						<view class='flex flex-wrap align-center bianmingjie_fd0_0_c1'>
							<text class='bianmingjie_fd0_0_c1_c0'>龙湖写字楼转租 因公司地址调动进行转租 位于十楼欢迎咨询 地理位置良好 近地铁 拎包入住写字
								…</text>
						</view>
						<view class='flex flex-wrap align-center bianmingjie_fd0_2_c1'>
							<view class='flex flex-wrap align-center bianmingjie_fd0_2_c1_c0'>
								<image class='bianmingjie_fd0_2_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"33.png"'>
								</image>
								<view class='flex flex-wrap align-center justify-center bianmingjie_fd0_2_c1_c0_c1'>
									<text class='bianmingjie_fd0_2_c1_c0_c1_c0'>写字楼</text>
								</view>
							</view>
							<view class='flex flex-direction flex-wrap align-stretch'>
								<text class='bianmingjie_fd0_2_c1_c1_c0'>整租·文秀阁一期2室1厅</text>
								<text class='bianmingjie_fd0_2_c1_c1_c1'>厦门 沧海区 丨2室1厅1卫丨78㎡</text>
								<text>这是文字</text>
							</view>
						</view>
					</view> -->
				</view>
				<!---flex布局flex布局结束-->
			</view>
			<!---flex布局flex布局结束-->
		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"tabs": '',
				arrList: [],
				typesID:'',
				arrValueList:[],
				indexValue:'0',
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			userInfo(){
				return this.$store.getters.userInfo
			}
		},
		watch: {},
		onLoad(options) {
			console.log(this.userInfo);
			
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getConList()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			clickDynamicDetails(aid){
				uni.navigateTo({
					url:`/pages/mine/dynamicDetails/dynamicDetails?aid=${aid}&type=2`
				})
			},
			getList(){
				this.$api.post('/m6752/666c10bc021e9',{
					buycate_id:this.typesID
				}).then(res=>{
					if(res.data.code == 1){
						this.arrValueList = res.data.data
					}
				})
			},
			changetab(){
				this.typesID = this.tabs
				this.getList()
			},
			 getConList() {
				uni.showLoading({
					title: '加载中'
				})
				this.$api.post('/m6752/666c0f7e26481', {
					cate_id: this.tabs
				}).then(res => {
					uni.hideLoading()
					if (res.data.code == 1) {
						this.arrList = res.data.data
						this.tabs = res.data.data[0].aid
						this.getList()
					}
				})
			},
			deleteThis(id) {
				let that = this
				uni.showModal({
					title: '提示',
					content: '是否删除',
					success: function(res) {
						if (res.confirm) {
							that.$api.post('/m6752/62d7c94f0e33c', {
								forum_id: id
							}).then(res => {
								that.arrList = []
								that.getConList()
							})
						} else if (res.cancel) {
							console.log('取消');
						}
					}
				});
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.bianmingjie_flex_0 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.bianmingjie_fd0_3_c3_c1 {
		width: 56rpx;
		height: 56rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_3_c3_c0_c6 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		margin: 0rpx 0rpx 0rpx 16rpx;
	}

	.bianmingjie_fd0_3_c3_c0_c5 {
		color: #EA4040;
		font-size: 28rpx;
		font-weight: 500;
	}

	.bianmingjie_fd0_3_c3_c0_c2 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_3_c3_c0_c1 {
		color: #EA4040;
		font-size: 28rpx;
		font-weight: 500;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_3_c3_c0_c0 {
		color: #333333;
		font-size: 24rpx;
		font-weight: 400;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_3_c3 {
		width: 100%;
		margin: 8rpx 0rpx 0rpx 0rpx;
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.bianmingjie_fd0_3_c2 {
		width: 100%;
		padding: 0rpx 24rpx 0rpx 24rpx;
		margin: 32rpx 0rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_3_c1_c1_c0 {
		color: #FFFFFF;
		font-size: 20rpx;
		font-weight: 500;
	}

	.bianmingjie_fd0_3_c1_c1 {
		background: #59AAFF;
		border-radius: 0rpx 40rpx 40rpx 0rpx;
		width: 96rpx;
		height: 40rpx;
		position: absolute;
		left: 0rpx;
		z-index: 1;
		top: 18rpx;
	}

	.bianmingjie_fd0_3_c1_c0_c0 {
		width: 146rpx;
		height: 146rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.bianmingjie_fd0_3_c1_c0 {
		width: 100%;
		height: 100%;
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.bianmingjie_fd0_3_c1 {
		width: 100%;
		height: 146rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
		position: relative;
	}

	.bianmingjie_fd0_3_c0 {
		width: 100%;
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.bianmingjie_fd0_3 {
		background: #FFFFFF;
		margin: 24rpx 0rpx 0rpx 0rpx;
		width: 100%;
		padding: 32rpx 0rpx 25rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.bianmingjie_fd0_2_c1_c1_c1 {
		color: #666666;
		font-size: 22rpx;
		font-weight: 400;
		margin: 0rpx 0rpx 23rpx 0rpx;
	}

	.bianmingjie_fd0_2_c1_c1_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.bianmingjie_fd0_2_c1_c0_c1_c0 {
		color: #FFFFFF;
		font-size: 22rpx;
		font-weight: 400;
	}

	.bianmingjie_fd0_2_c1_c0_c1 {
		background: #2E66FF;
		border-radius: 16rpx 0rpx 16rpx 0rpx;
		width: 86rpx;
		height: 36rpx;
		position: absolute;
		z-index: 1;
		top: 0rpx;
		left: 0rpx;
	}

	.bianmingjie_fd0_2_c1_c0_c0 {
		width: 100%;
		height: 100%;
		border-radius: 16rpx;
		position: absolute;
	}

	.bianmingjie_fd0_2_c1_c0 {
		width: 216rpx;
		font-style: normal;
		height: 192rpx;
		border-radius: 16rpx;
		position: relative;
		margin: 0rpx 20rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_2_c1 {
		background: #F8F8F8;
		width: 100%;
		margin: 24rpx 0rpx 0rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		height: 192rpx;
	}

	.bianmingjie_fd0_2 {
		background: #FFFFFF;
		margin: 24rpx 0rpx 0rpx 0rpx;
		width: 100%;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
	}

	.bianmingjie_fd0_1_c2_c0_c0 {
		width: 48rpx;
		height: 48rpx;
		border-radius: 16rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_1_c2 {
		border-top: 1px solid rgba(238, 238, 238, 1);
		width: 100%;
		margin: 32rpx 0rpx 0rpx 0rpx;
		padding: 24rpx 0rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_0_c3_c0_c1 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
	}

	.bianmingjie_fd0_0_c3_c0_c0 {
		width: 48rpx;
		height: 48rpx;
		border-radius: 48rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_0_c3 {
		border-top: 1px solid rgba(238, 238, 238, 1);
		width: 100%;
		padding: 24rpx 0rpx 0rpx 0rpx;
		margin: 32rpx 0rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_0_c2_c0 {
		width: 210rpx;
		height: 210rpx;
		border-radius: 16rpx;
		margin: 12rpx 12rpx 0 0;
	}
	
	.bianmingjie_fd0_0_c2_c0:nth-child(3n){
		margin: 12rpx 0 0 0;
	}

	.bianmingjie_fd0_0_c2 {
		width: 100%;
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.bianmingjie_fd0_0_c1_c1_c0 {
		margin: 8rpx 0rpx 0rpx 0rpx;
		color: #666666;
		font-size: 24rpx;
		font-weight: 400;
	}

	.bianmingjie_fd0_0_c1_c0 {
		color: #666666;
		font-size: 24rpx;
		font-weight: 400;
	}

	.bianmingjie_fd0_0_c1 {
		width: 100%;
	}

	.bianmingjie_fd0_0_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
	}

	.bianmingjie_fd0_0_c0 {
		width: 100%;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.bianmingjie_fd0_0 {
		background: #FFFFFF;
		width: 100%;
		margin: 24rpx 0rpx 0rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx 24rpx 24rpx 24rpx;
	}

	.myConvenience_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.myConvenience_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 40rpx;
	}

	.myConvenience_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.myConvenience_fd0_0_c0 {
		width: 120rpx;
	}

	.myConvenience_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.myConvenience_fd1_1_c0_c2_c0 {
		width: 202rpx;
		height: 202rpx;
		margin: 0rpx 25rpx 10rpx 0rpx;
		border-radius: 16rpx;
	}

	.myConvenience_fd1_1_c0_c1 {
		margin: 0rpx 0rpx 24rpx 0rpx;
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 48rpx;
	}

	.myConvenience_fd1_1_c0_c0_c1 {
		width: 24rpx;
		height: 28rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.myConvenience_fd1_1_c0_c0_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
	}

	.myConvenience_fd1_1_c0_c0 {
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.myConvenience_fd1_1_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.myConvenience_fd1_1 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.myConvenience_titlefd1_0_c3 {
		color: #999999;
		font-size: 30rpx;
		font-weight: 400;
		height: 42rpx;
	}

	.myConvenience_linefd1_0 {
		background: #FC5F80;
		width: 30rpx;
		height: 6rpx;
		top: 80rpx;
		background-size: 100% auto !important;
		border-radius: 3rpx 3rpx 3rpx 3rpx;
	}

	.checkTitlefd1_0 {
		font-weight: 500 !important;
		font-size: 30rpx !important;
		color: rgba(51, 51, 51, 1) !important;
	}

	::v-deep .myConvenience_benbenTabsfd1_0 {
		width: 750rpx;
		height: 90rpx;
		white-space: nowrap;
		text-align: center;
	}
</style>